<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>leader</title>
</head>
<body>
    <h2>员工详细信息</h2>
    <table border="1">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>职位</th>
            <th>工资</th>
        </tr>
        <tr>
            <td th:text="${employee.empno}"></td>
            <td th:text="${employee.ename}"></td>
            <td th:text="${employee.job}"></td>
            <td th:text="${employee.salary}"></td>
        </tr>
    </table>
    <h2>该员工的上司信息</h2>
    <table border="1">
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>职位</th>
            <th>工资</th>
        </tr>
        <tr th:each="e:${employee.employees}">
            <td th:text="${e.empno}"></td>
            <td th:text="${e.ename}"></td>
            <td th:text="${e.job}"></td>
            <td th:text="${e.salary}"></td>
        </tr>
    </table>
</body>
</html>